#容器启动后需要执行的命令
FROM openjdk:8-jdk-alpine
VOLUME /tmp
ADD spring-boot-docker-1.0.jar spring-boot-docker-1.0.jar
# 容器对外暴露8080端口
EXPOSE 8080
# 容器启动后需要执行的命令
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/spring-boot-docker-1.0.jar"]